|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.stanford.smi.protege.widget.AbstractWidget
edu.stanford.smi.protege.widget.AbstractSlotWidget
edu.stanford.smi.protege.widget.TextComponentWidget
edu.stanford.smi.protege.widget.TextFieldWidget
edu.stanford.smi.protege.widget.InstanceNameWidget
public class InstanceNameWidget
Slot widget for altering the frame name. This differs from a simple text field in that it must check that the new frame name is unique and valid. We currently have no validity checks though.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class edu.stanford.smi.protege.widget.AbstractSlotWidget |
|---|
READ_ONLY_WIDGET_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
InstanceNameWidget()
|
|
| Method Summary | |
|---|---|
void |
addNotify()
|
protected String |
getInvalidTextDescription(String text)
|
String |
getLabel()
|
static boolean |
isSuitable(Cls cls,
Slot slot,
Facet facet)
|
void |
setAssociatedCls(Cls associatedCls)
|
void |
setEditable(boolean b)
|
void |
setInstance(Instance instance)
|
void |
setInstanceValues()
|
void |
setWidgetValues()
|
| Methods inherited from class edu.stanford.smi.protege.widget.TextFieldWidget |
|---|
createCenterComponent, createTextComponent, createTextField, getTextField, initialize |
| Methods inherited from class edu.stanford.smi.protege.widget.TextComponentWidget |
|---|
commitChanges, createActions, createWidgetConfigurationPanel, dispose, getText, getTextComponent, getValues, initialize, initialize, isEditable, markDirty, onCommit, onSetText, selectAll, setText, setValues, validateText |
| Methods inherited from class edu.stanford.smi.protege.widget.AbstractWidget |
|---|
addSelectionListener, beginTransaction, beginTransaction, clearSelection, commitTransaction, endTransaction, equals, getDescriptor, getKnowledgeBase, getProject, getPropertyList, getSelection, getStringProperty, isDesignTime, isRuntime, notifySelectionListeners, paint, removeSelectionListener, rollbackTransaction, setLabel, setPropertyList, setup, show |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.stanford.smi.protege.widget.Widget |
|---|
getDescriptor, getKnowledgeBase, getProject, setLabel |
| Methods inherited from interface edu.stanford.smi.protege.util.Selectable |
|---|
addSelectionListener, clearSelection, getSelection, notifySelectionListeners, removeSelectionListener |
| Methods inherited from interface edu.stanford.smi.protege.plugin.Plugin |
|---|
getName |
| Constructor Detail |
|---|
public InstanceNameWidget()
| Method Detail |
|---|
public void addNotify()
addNotify in class JComponent
public static boolean isSuitable(Cls cls,
Slot slot,
Facet facet)
public void setAssociatedCls(Cls associatedCls)
setAssociatedCls in interface SlotWidgetsetAssociatedCls in class AbstractSlotWidgetpublic void setEditable(boolean b)
setEditable in class TextComponentWidgetpublic void setInstance(Instance instance)
setInstance in interface SlotWidgetsetInstance in class TextComponentWidgetpublic void setInstanceValues()
setInstanceValues in class TextComponentWidgetprotected String getInvalidTextDescription(String text)
getInvalidTextDescription in class TextComponentWidgetpublic void setWidgetValues()
setWidgetValues in class AbstractSlotWidgetpublic String getLabel()
getLabel in interface WidgetgetLabel in class AbstractSlotWidget
|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||